package com.robotserver.orders.entity;

import java.io.Serializable;

/**
 * jd_orders
 * @author 
 */
public class JdOrders extends BaseEntity{
    /**
     * 订单完成时间
     */
    private Integer finishTime;

    /**
     * 下单设备(1:PC,2:无线)
     */
    private Integer orderEmt;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * API返回的id
     */
    private String dataId;

    /**
     * 存放拆单订单的orders_id字段。
     */
    private Long orderIdOld;

    /**
     * 下单时间
     */
    private Integer orderTime;

    /**
     * 父单的订单ID
     */
    private Long parentId;

    /**
     * 订单维度预估结算时间
     */
    private String payMonth;

    /**
     * 下单用户是否为PLUS会员 0：否，1：是
     */
    private Integer plus;

    /**
     * 订单维度商家ID
     */
    private Long popId;

    /**
     * 推客的联盟ID
     */
    private Long unionId;

    /**
     * 订单维度的推客生成推广链接时传入的扩展字段
     */
    private String ext1;

    /**
     * 订单维度的有效码
     */
    private Integer validCode;

    /**
     * 实际计算佣金的金额
     */
    private Integer actualCosPrice;

    /**
     * 推客获得的实际佣金
     */
    private Integer actualFee;

    /**
     * 佣金比例
     */
    private Double commissionRate;

    /**
     * 预估计佣金额
     */
    private Integer estimateCosPrice;

    /**
     * 推客的预估佣金
     */
    private Integer estimateFee;

    /**
     * 最终比例
     */
    private Double finalRate;

    /**
     * 一级类目ID
     */
    private Long cid1;

    /**
     * 商品售后中数量
     */
    private Integer frozenSkuNum;

    /**
     * 联盟子站长身份标识
     */
    private String pid;

    /**
     * 推广位ID,0代表无推广位
     */
    private Long positionId;

    /**
     * 商品单价
     */
    private Integer price;

    /**
     * 二级类目ID
     */
    private Long cid2;

    /**
     * 网站ID，0：无网站
     */
    private Long siteId;

    /**
     * 商品ID
     */
    private Long skuId;

    /**
     * 商品名称
     */
    private String skuName;

    /**
     * 商品数量
     */
    private Integer skuNum;

    /**
     * 商品已退货数量
     */
    private Integer skuReturnNum;

    /**
     * 分成比例
     */
    private Double subSideRate;

    /**
     * 补贴比例
     */
    private Double subsidyRate;

    /**
     * PID所属母账号平台名称
     */
    private String unionAlias;

    /**
     * 联盟标签数据
     */
    private String unionTag;

    /**
     * 渠道组 1：1号店，其他：京东
     */
    private Integer unionTrafficGroup;

    /**
     * sku维度的有效码
     */
    private Integer skuValidCode;

    /**
     * 子联盟ID
     */
    private String subUnionId;

    /**
     * 2：同店；3：跨店
     */
    private Integer traceType;

    /**
     * 订单行维度预估结算时间
     */
    private Integer skuPayMonth;

    /**
     * 商家ID
     */
    private Long skuPopId;

    /**
     * 推客生成推广链接时传入的扩展字段
     */
    private String skuExt1;

    /**
     * 招商团活动id
     */
    private Long cpActId;

    /**
     * 站长角色，1： 推客、 2： 团长
     */
    private Integer unionRole;

    /**
     * 礼金批次ID
     */
    private String giftCouponKey;

    /**
     * 礼金分摊金额
     */
    private Integer giftCouponOcsAmount;

    /**
     * 订单状态(0订单付款 1订单结算 2订单失效 3维权退款 4无效订单[未支付等情况])
     */
    private Integer bizStatus;

    private Long cid3;

    private String imgUrl;

    private Integer modifyTime;   //订单更新时间,格式yyyy-MM-dd HH:mm:ss
    private String  balanceExt;   //计佣扩展信息，表示结算月:每月实际佣金变化情况，格式：{20191020:10,20191120:-2}，注意：有完成时间的，才会有这个值
    private Integer proPriceAmount;  //价保赔付金额：订单申请价保或赔付的金额，实际计佣金额已经减去此金额，您无需处理
    private String owner;                 //g=自营，p=pop
    private Long mainSkuId;            //自营商品主Id（owner=g取此值）
    private Long productId;                //非自营商品主Id（owner=p取此值）
    private String shopName;        //店铺名称（或供应商名称）
    private Long shopId;               //店铺ID
    private String cid1Name;            //一级类目名称
    private String cid2Name;      //二级类目名称
    private String cid3Name;      //三级类目名称
    private Integer expressStatus;  //发货状态（10：待发货，20：已发货）

    private String failReason;   //订单审核失败/惩罚原因
    private String rid;          //渠道id
    private String itemId;          //联盟商品ID
    private String callerItemId;          //工具商联盟商品ID



    @Override
    protected Serializable pkVal() {
        return this.getId();
    }

    public Integer getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Integer finishTime) {
        this.finishTime = finishTime;
    }

    public Integer getOrderEmt() {
        return orderEmt;
    }

    public void setOrderEmt(Integer orderEmt) {
        this.orderEmt = orderEmt;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Integer orderTime) {
        this.orderTime = orderTime;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getPayMonth() {
        return payMonth;
    }

    public void setPayMonth(String payMonth) {
        this.payMonth = payMonth;
    }

    public Integer getPlus() {
        return plus;
    }

    public void setPlus(Integer plus) {
        this.plus = plus;
    }

    public Long getPopId() {
        return popId;
    }

    public void setPopId(Long popId) {
        this.popId = popId;
    }

    public Long getUnionId() {
        return unionId;
    }

    public void setUnionId(Long unionId) {
        this.unionId = unionId;
    }

    public String getExt1() {
        return ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1;
    }

    public Integer getValidCode() {
        return validCode;
    }

    public void setValidCode(Integer validCode) {
        this.validCode = validCode;
    }

    public Integer getActualCosPrice() {
        return actualCosPrice;
    }

    public void setActualCosPrice(Integer actualCosPrice) {
        this.actualCosPrice = actualCosPrice;
    }

    public Integer getActualFee() {
        return actualFee;
    }

    public void setActualFee(Integer actualFee) {
        this.actualFee = actualFee;
    }

    public Double getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(Double commissionRate) {
        this.commissionRate = commissionRate;
    }

    public Integer getEstimateCosPrice() {
        return estimateCosPrice;
    }

    public void setEstimateCosPrice(Integer estimateCosPrice) {
        this.estimateCosPrice = estimateCosPrice;
    }

    public Integer getEstimateFee() {
        return estimateFee;
    }

    public void setEstimateFee(Integer estimateFee) {
        this.estimateFee = estimateFee;
    }

    public Double getFinalRate() {
        return finalRate;
    }

    public void setFinalRate(Double finalRate) {
        this.finalRate = finalRate;
    }

    public Long getCid1() {
        return cid1;
    }

    public void setCid1(Long cid1) {
        this.cid1 = cid1;
    }

    public Integer getFrozenSkuNum() {
        return frozenSkuNum;
    }

    public void setFrozenSkuNum(Integer frozenSkuNum) {
        this.frozenSkuNum = frozenSkuNum;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public Long getPositionId() {
        return positionId;
    }

    public void setPositionId(Long positionId) {
        this.positionId = positionId;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Long getCid2() {
        return cid2;
    }

    public void setCid2(Long cid2) {
        this.cid2 = cid2;
    }

    public Long getSiteId() {
        return siteId;
    }

    public void setSiteId(Long siteId) {
        this.siteId = siteId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Integer getSkuNum() {
        return skuNum;
    }

    public void setSkuNum(Integer skuNum) {
        this.skuNum = skuNum;
    }

    public Integer getSkuReturnNum() {
        return skuReturnNum;
    }

    public void setSkuReturnNum(Integer skuReturnNum) {
        this.skuReturnNum = skuReturnNum;
    }

    public Double getSubSideRate() {
        return subSideRate;
    }

    public void setSubSideRate(Double subSideRate) {
        this.subSideRate = subSideRate;
    }

    public Double getSubsidyRate() {
        return subsidyRate;
    }

    public void setSubsidyRate(Double subsidyRate) {
        this.subsidyRate = subsidyRate;
    }

    public String getUnionAlias() {
        return unionAlias;
    }

    public void setUnionAlias(String unionAlias) {
        this.unionAlias = unionAlias;
    }

    public String getUnionTag() {
        return unionTag;
    }

    public void setUnionTag(String unionTag) {
        this.unionTag = unionTag;
    }

    public Integer getUnionTrafficGroup() {
        return unionTrafficGroup;
    }

    public void setUnionTrafficGroup(Integer unionTrafficGroup) {
        this.unionTrafficGroup = unionTrafficGroup;
    }

    public Integer getSkuValidCode() {
        return skuValidCode;
    }

    public void setSkuValidCode(Integer skuValidCode) {
        this.skuValidCode = skuValidCode;
    }

    public String getSubUnionId() {
        return subUnionId;
    }

    public void setSubUnionId(String subUnionId) {
        this.subUnionId = subUnionId;
    }

    public Integer getTraceType() {
        return traceType;
    }

    public void setTraceType(Integer traceType) {
        this.traceType = traceType;
    }

    public Integer getSkuPayMonth() {
        return skuPayMonth;
    }

    public void setSkuPayMonth(Integer skuPayMonth) {
        this.skuPayMonth = skuPayMonth;
    }

    public Long getSkuPopId() {
        return skuPopId;
    }

    public void setSkuPopId(Long skuPopId) {
        this.skuPopId = skuPopId;
    }

    public String getSkuExt1() {
        return skuExt1;
    }

    public void setSkuExt1(String skuExt1) {
        this.skuExt1 = skuExt1;
    }

    public Long getCpActId() {
        return cpActId;
    }

    public void setCpActId(Long cpActId) {
        this.cpActId = cpActId;
    }

    public Integer getUnionRole() {
        return unionRole;
    }

    public void setUnionRole(Integer unionRole) {
        this.unionRole = unionRole;
    }

    public String getGiftCouponKey() {
        return giftCouponKey;
    }

    public void setGiftCouponKey(String giftCouponKey) {
        this.giftCouponKey = giftCouponKey;
    }

    public Integer getGiftCouponOcsAmount() {
        return giftCouponOcsAmount;
    }

    public void setGiftCouponOcsAmount(Integer giftCouponOcsAmount) {
        this.giftCouponOcsAmount = giftCouponOcsAmount;
    }

    public Integer getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(Integer bizStatus) {
        this.bizStatus = bizStatus;
    }

    public Long getCid3() {
        return cid3;
    }

    public void setCid3(Long cid3) {
        this.cid3 = cid3;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Integer getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Integer modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getBalanceExt() {
        return balanceExt;
    }

    public void setBalanceExt(String balanceExt) {
        this.balanceExt = balanceExt;
    }

    public Integer getProPriceAmount() {
        return proPriceAmount;
    }

    public void setProPriceAmount(Integer proPriceAmount) {
        this.proPriceAmount = proPriceAmount;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public Long getMainSkuId() {
        return mainSkuId;
    }

    public void setMainSkuId(Long mainSkuId) {
        this.mainSkuId = mainSkuId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getCid1Name() {
        return cid1Name;
    }

    public void setCid1Name(String cid1Name) {
        this.cid1Name = cid1Name;
    }

    public String getCid2Name() {
        return cid2Name;
    }

    public void setCid2Name(String cid2Name) {
        this.cid2Name = cid2Name;
    }

    public String getCid3Name() {
        return cid3Name;
    }

    public void setCid3Name(String cid3Name) {
        this.cid3Name = cid3Name;
    }

    public Integer getExpressStatus() {
        return expressStatus;
    }

    public void setExpressStatus(Integer expressStatus) {
        this.expressStatus = expressStatus;
    }

    public String getFailReason() {
        return failReason;
    }

    public void setFailReason(String failReason) {
        this.failReason = failReason;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public Long getOrderIdOld() {
        return orderIdOld;
    }

    public void setOrderIdOld(Long orderIdOld) {
        this.orderIdOld = orderIdOld;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getCallerItemId() {
        return callerItemId;
    }

    public void setCallerItemId(String callerItemId) {
        this.callerItemId = callerItemId;
    }
}